package cn.edu.ujn.lab3.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.ujn.lab3.dao.User;
import cn.edu.ujn.lab3.utils.Page;

public interface IUserService {
	int deleteByPrimaryKey(Integer userId);

	int insert(User row);

	int insertSelective(User row);

	User selectByPrimaryKey(Integer userId);
	
	User selectByUserCode(String userCode);

	int updateByPrimaryKeySelective(User row);

	int updateByPrimaryKey(User row);

	int updateByUserCodeSelective(User row);

	User findUserByCodeAndPassword(@Param("usercode") String usercode, @Param("password") String password);

	Page<User> findUserList(Integer page, Integer rows, Integer user_id, String user_code, String user_name,
			String user_password, Integer user_state);

	List<User> selectUserList(User user);

	int selectUserCount();

}
